package com.hhp.cloud.shop.admin.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 权限表
 * 
 * @author hhp
 * @email 2437579794@qq.com
 * @date 2021-11-23 10:25:33
 */
@Data
@TableName("sys_permission")
public class PermissionEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(type = IdType.AUTO)
	private Long id;
	/**
	 * 权限名称
	 */
	private String name;
	/**
	 * 菜单模块ID

	 */
	private Integer menuId;
	/**
	 * URL权限标识
	 */
	private String urlPerm;
	/**
	 * 按钮权限标识
	 */
	private String btnPerm;
	/**
	 * 
	 */
	private Date gmtCreate;
	/**
	 * 
	 */
	private Date gmtModified;

	/**
	 * 有权限的角色编号集合
	 */
	@TableField(exist = false)
	private List<String> roles;
}
